//
//  SJNavigationController.m
//  penzer
//
//  Created by 还带大道 on 2018/11/14.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "SJNavigationController.h"
#import "SPCommon.h"

@interface SJNavigationController ()

@end

@implementation SJNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    //初始化一些属性
    UINavigationBar *navBar = [UINavigationBar appearance];
    
    //设置背景(会默认navBar.translucent = NO 即关闭半透明属性view.y=64,高度不变)
    //    [navBar setBackgroundImage:[UIImage imageNamed:@"ic_nav"] forBarMetrics:UIBarMetricsDefault];
    //设置导航条颜色
    navBar.barTintColor = [UIColor whiteColor];
    // 设置返回按钮的颜色
    navBar.tintColor = RZ_COLOR(74, 74, 74);
    //设置返回按钮图片
    navBar.backIndicatorTransitionMaskImage = [UIImage imageNamed:@"icon_back"];
    
    //设置标题颜色及大小
    NSMutableDictionary *attrs = [NSMutableDictionary dictionary];
    attrs[NSForegroundColorAttributeName] = RZ_COLOR(74, 74, 74);
    attrs[NSFontAttributeName] = [UIFont systemFontOfSize:18];
    [navBar setTitleTextAttributes:attrs];
}



@end
